import request from '@/utils/request'
import { HTTP_METHOD } from '@/utils/http'

const BASE_URL = '/user'

/**
 * @export 获取用户还款详情
 * @param {*} tid
 */
 export function getRepayments (task_id) {
  return request({
    url: `${BASE_URL}/repaymentlist`,
    method: HTTP_METHOD.POST,
    baseURL: process.env.VUE_APP_RISK_ENGINE_BASE_API,
    data: {
      task_id,
    },
  })
}
